﻿CREATE TABLE [dbo].[ErrorReporting] (
    [Id]           BIGINT           IDENTITY (1, 1) NOT NULL,
    [ParentId]     BIGINT           NULL,
    [InstanceId]   UNIQUEIDENTIFIER NOT NULL,
    [ReleaseId]    INT              NOT NULL,
    [TimeStampUtc] DATETIME         NOT NULL,
    [Count]        INT              NOT NULL,
    [ErrorType]    VARCHAR (100)    NOT NULL,
    [Message]      TEXT             NOT NULL,
    [ClassName]    VARCHAR (1000)   NOT NULL,
    [MethodName]   VARCHAR (100)    NOT NULL,
    [StackTrace]   TEXT             NULL,
    [ErrorHash]    CHAR (40)        NOT NULL
);

